From: martin rudalics Date: Sat, 22 Oct 2011 17:06:13 +0000 (+0200) Subject: In mouse-drag-line correctly use window-in-direction. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~1879 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=6e19a6beac7b1b7e24ebddb2d039614b2f45f2c3;p=emacs.git In mouse-drag-line correctly use window-in-direction. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1f032868602..a24b3bd57a9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -12,7 +12,7 @@ 2011-10-22 Martin Rudalics * mouse.el (mouse-drag-line): Fix minibuffer resizing broken by - last fix. + last fix. Use window-in-direction correctly. 2011-10-21 Chong Yidong diff --git a/lisp/mouse.el b/lisp/mouse.el index 78a666419b6..9b1cf48ccdc 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -419,8 +419,9 @@ must be one of the symbols header, mode, or vertical." (cond ((eq line 'header) ;; Check whether header-line can be dragged at all. - (when (window-at-side-p window 'top) - (setq done t))) + (if (window-at-side-p window 'top) + (setq done t) + (setq window (window-in-direction 'above window t)))) ((eq line 'mode) ;; Check whether mode-line can be dragged at all. (when (and (window-at-side-p window 'bottom) @@ -436,7 +437,7 @@ must be one of the symbols header, mode, or vertical." window ;; If the scroll bar is on the start-event window's left, ;; adjust the window on the left of it. - (window-in-direction 'left window))))) + (window-in-direction 'left window t))))) ;; Start tracking. (track-mouse